package com.itheima.service.impl;

import com.itheima.dao.ResourceDao;
import com.itheima.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Xiao
 * @date 2021/9/13
 */
@Service
public class ResourceServiceImpl implements ResourceService {
    @Autowired
    private ResourceDao resourceDao;
    @Override
    public boolean openURL(String url, String password) {
        //注意
        return resourceDao.readResources(url, password);
    }
}
